<link
	href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}"
	rel="stylesheet" type="text/css">

<div class="pageContent" id="jGridForPullType"></div>

<script type="text/javascript">
	(function($) {
		var $grid = $('#jGridForPullType').jGrid({
			layoutH: 135,
			base: '${rc.getContextPath()}/manage/pullType/',
			url: 'getPullTypes',
			columns: [{
				field: 'pullTypeCode',
				group: 'ids',
				type: 'checkbox',
				width: 22
			}, {
				field: '_index',
				text: '<@label key="serialNumber.C">序号</@label>',
				width: 40
			}, {
				field: 'pullTypeCode',
				text: '<@label key="pullType.C,code.C"></@label>',
				width: 100,
				query: true
			}, {
				field: 'pullTypeText',
				text: '<@label key="pullType.C,desc.C"></@label>',
				width: 100,
				query: true
			}, {
				field: 'lockFlag',
				text: '<@label key="lockFlag.C">锁定标记</@label>',
				width: 50,
				transform: function(data) {
					if (data == 0) {
						return '<@label key="no.C">否</@label>';
					} else if (data == 1) {
						return '<@label key="yes.C">是</@label>';
					}
				},
				query: true,
				queryType: 'select',
				queryOptions: [{
					value: '',
					label: '<@label key="all.C">所有</@label>'
				}, {
					value: 0,
					label: '<@label key="no.C">否</@label>'
				}, {
					value: 1,
					label: '<@label key="yes.C">是</@label>'
				}]
			}, {
				field: 'createUser',
				text: '<@label key="createUser.C">创建人</@label>',
				width: 100
			}, {
				field: 'createDateTime',
				type: 'date',
				format: 'yyyy-MM-dd HH:mm:ss',
				text: '<@label key="createDateTime.C">创建时间</@label>',
				width: 100
			}, {
				field: 'modifyUser',
				text: '<@label key="modifyUser.C">修改人</@label>',
				width: 100
			}, {
				field: 'modifyDateTime',
				type: 'date',
				format: 'yyyy-MM-dd HH:mm:ss',
				text: '<@label key="modifyDateTime.C">修改时间</@label>',
				width: 100
			}],
			gridbars: [{
				icon: 'add',
				text: '<@label key="add.B">新增</@label>',
				title: '<@label key="add.B,pullType.C"></@label>',
				target: 'dialog',
				href: 'addPullType',
				data: {
					navTabId: "${navTabId!''}"
				},
				mask: true,
				width: 480,
				height: 220,
				rel: '',
				menuCode: "pullType_add"
			}, {
				icon: 'edit',
				text: '<@label key="edit.B">编辑</@label>',
				title: '<@label key="edit.B,pullType.C"></@label>',
				target: 'dialog',
				href: 'modifyPullType',
				data: {
					pullTypeCode: '{pullTypeCode}',
					navTabId: '${navTabId!""}'
				},
				mask: true,
				width: 580,
				height: 300,
				rel: '',
				callback: $.noop,
				menuCode: "pullType_edit"
			}, {
				icon: 'icon',
				text: '<@label key="view.B">详情</@label>',
				title: '<@label key="pullType.C,view.B"></@label>',
				target: 'dialog',
				href: 'viewPullType',
				data: {
					pullTypeCode: '{pullTypeCode}',
					navTabId: '${navTabId!""}'
				},
				mask: true,
				width: 580,
				height: 300,
				rel: '',
				callback: $.noop,
				menuCode: "pullType_view"
			}, {
				icon: 'delete',
				text: '<@label key="delete.B">删除</@label>',
				title: "确认要删除选择的拉动类型吗？",
				target: 'selectedTodo',
				href: 'deletePullType',
				data: {
					pullTypeCodes: '{ids}',
					navTabId: '${navTabId!""}'
				},
				menuCode: "pullType_del"
			}]
		});
	})(jQuery);
</script>